package com.demo.netty.tomcat;

import com.demo.tomcat.MyRequest;
import com.demo.tomcat.MyResponse;

import java.io.IOException;

public class MySecondServlet extends MyNettyServlet {
    @Override
    protected void doGet(MyNettyRequest request, MyNettyResponse response) throws IOException {
        doPost(request, response);
    }

    @Override
    protected void doPost(MyNettyRequest request, MyNettyResponse response) throws IOException {
        response.write("this is second servlet");
    }
}
